package com.xiaoxi.mediatormode.colleague;

import com.xiaoxi.mediatormode.mediator.Mediator;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.mediatormode.colleague
 * @ClassName Colleague
 * @Description TODO
 * @Date 2023/3/27 14:33
 * @Version 1.0
 */
public interface Colleague {

    /**
     * 给组员提供一个仲裁者
     *
     * @param mediator
     */
    void setMediator(Mediator mediator);

    /**
     * 组员是禁用还是启用状态。可根据具体业务视情况而定
     *
     * @param enabled
     */
    void setColleagueEnabled(boolean enabled);

}
